// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Nodes;

public sealed partial class IoStatDevice
{
	/// <summary>
	/// <para>The Linux device name.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("device_name")]
	public string? DeviceName { get; init; }

	/// <summary>
	/// <para>The total number of read and write operations for the device completed since starting Elasticsearch.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("operations")]
	public long? Operations { get; init; }

	/// <summary>
	/// <para>The total number of kilobytes read for the device since starting Elasticsearch.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("read_kilobytes")]
	public long? ReadKilobytes { get; init; }

	/// <summary>
	/// <para>The total number of read operations for the device completed since starting Elasticsearch.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("read_operations")]
	public long? ReadOperations { get; init; }

	/// <summary>
	/// <para>The total number of kilobytes written for the device since starting Elasticsearch.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("write_kilobytes")]
	public long? WriteKilobytes { get; init; }

	/// <summary>
	/// <para>The total number of write operations for the device completed since starting Elasticsearch.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("write_operations")]
	public long? WriteOperations { get; init; }
}